/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package BUS;

import DAO.DoanhThuTheoLoaiPhong_DAO;
import DTO.DoanhThuTheoLoaiPhong_DTO;
import javax.swing.table.DefaultTableModel;

/**
 *
 * @author PEKEM
 */
public class DoanhThuTheoLoaiPhong_BUS {

    public static DefaultTableModel layDSTheoThang(String thang) throws Exception {
        return DoanhThuTheoLoaiPhong_DAO.layDSTheoThang(thang);
    }

    public static Float layDoanhThuTheoThang(String thang) throws Exception {
        return DoanhThuTheoLoaiPhong_DAO.layDoanhThuTheoThang(thang);
    }

    public static int Insert(DoanhThuTheoLoaiPhong_DTO dt) throws Exception {
        return DoanhThuTheoLoaiPhong_DAO.Insert(dt);
    }

    public static int Delete(String maDT) throws Exception {
        return DoanhThuTheoLoaiPhong_DAO.Delete(maDT);
    }

    public static int Update(DoanhThuTheoLoaiPhong_DTO lp) throws Exception {
        return DoanhThuTheoLoaiPhong_DAO.Update(lp);
    }

    public static String taoMaTuDong(String maGoc, int batDau) throws Exception {
        return DoanhThuTheoLoaiPhong_DAO.taoMaTuDong(maGoc, batDau);
    }

    public static String layMaCuoiCung() throws Exception {
        return DoanhThuTheoLoaiPhong_DAO.layMaCuoiCung();
    }
    public static String layMaDT(String maP, String thang) throws Exception {
        return DoanhThuTheoLoaiPhong_DAO.layMaDT(maP, thang);
    }
    public static Float layDoanhThuTheoThangVaLoaiPhong(String thang, String maLP) throws Exception {
        return DoanhThuTheoLoaiPhong_DAO.layDoanhThuTheoThangVaLoaiPhong(thang, maLP);
    }

    public static int UpdateDoanhThu(String doanhThu, String maDT) throws Exception {
        return DoanhThuTheoLoaiPhong_DAO.UpdateDoanhThu(doanhThu, maDT);
    }
}
